package com.threeti.jiayusms.interfaces;

import static org.springframework.util.StringUtils.hasText;

import com.threeti.jiayusms.framework.util.AbstractDynaSearchCriteria;

public class LogTemplateDynaCriteria extends AbstractDynaSearchCriteria {
  private String templateKeywords;
  
  private String communicationDate;
  private String clientName;
  private String truckId;
  private String carryId;
  private String communicationMode;
  private String communicationFlag;
  private String bdepartment;
  private String modifyUser;

  public String getTemplateKeywords() {
    return templateKeywords;
  }

  public String getCommunicationDate() {
    return communicationDate;
  }

  public String getClientName() {
    return clientName;
  }

  public String getTruckId() {
    return truckId;
  }

  public String getCarryId() {
    return carryId;
  }

  public String getCommunicationMode() {
    return communicationMode;
  }

  public String getCommunicationFlag() {
    return communicationFlag;
  }

  public String getBdepartment() {
    return bdepartment;
  }

  public String getModifyUser() {
    return modifyUser;
  }

  @Override
  public boolean isAnyConditionInput() {
    return (hasText(templateKeywords) || hasText(communicationDate) || hasText(clientName) 
    || hasText(truckId) || hasText(carryId) || hasText(communicationMode) 
    || hasText(communicationFlag) || hasText(bdepartment) ||hasText(modifyUser));
  }
}
